import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
//权限管理做铺垫;
let routers = [{
	path: '/',
	name: '首页',
	component: () => import('@/components/layout/layout'),
	redirect: '/dashboard', //路由重定向（访问首先跳转到layout然后立即跳转子路由到/dashboard）
	indexID: 1,
	ico:'el-icon-location',
	children: [{
		path: 'dashboard',
		name: '控制面板',
		ico:'el-icon-location',
		component: () => import('@/views/dashboard/dashboard'),
		indexID: 1,
		acitveID:"0"
	}]
}, {
	path: '/',
	name: '测试',
	component: () => import('@/components/layout/layout'),
	indexID: 2,
	ico:'el-icon-location',
	children: [{
		path: 'cs1',
		name: '测试-1',
		ico:'el-icon-location',
		component: () => import('@/views/test/test1'),
		acitveID:"1",
	},{
		path: '/cs2',
		name: '测试-2',
		ico:'el-icon-location',
		component: () => import('@/views/test/test2'),
		acitveID:"2"
	},{
		path: '',
		name: '测试-3',
		ico:'el-icon-location',
		component: () => import('@/components/layout/publish-center'), //三级菜单中间件
		children:[{
			path: 'cs3-1',
			name: '测试-3-1',
			ico:'el-icon-location',
			component: () => import('@/views/test/test3/test1'),
			acitveID:"3",
		}]
	}],
}]
export default new Router({
	mode: 'history',
	routes: routers
})
